package data;

import java.util.ArrayList;

/**
 * 
 * @author Niels Schimdt Hansen initiates Account class
 */
public class Account {

	private String userId;
	private double availableBalance;
	private double totalBalance;
	private String kontoType;
	private ModelClass modelClass;
	private int accountNumber;
	private ArrayList<Account> accounts;

	/**
	 * Accounts constructor and all it's parameters
	 * 
	 * @param accountNumber
	 * @param userId
	 * @param availableBalance
	 * @param totalBalance
	 * @param kontoType
	 */

	public Account(int accountNumber, String userId, double availableBalance,
			double totalBalance, String kontoType) {

		accounts = new ArrayList<Account>();
		this.accountNumber = accountNumber;
		this.userId = userId;
		this.availableBalance = availableBalance;
		this.totalBalance = totalBalance;
		this.kontoType = kontoType;

	}

	/**
	 * 
	 * @return accountNumber
	 */
	public int getAccountNumber() {
		return accountNumber;
	}

	/**
	 * 
	 * @param accountNumber
	 */
	public void setAccountNumber(int accountNumber) {
		this.accountNumber = accountNumber;
	}

	/**
	 * 
	 * @param userId
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * 
	 * @param availableBalance
	 */
	public void setAvailableBalance(double availableBalance) {
		this.availableBalance = availableBalance;
	}

	/**
	 * 
	 * @param totalBalance
	 */
	public void setTotalBalance(double totalBalance) {
		this.totalBalance = totalBalance;
	}

	/**
	 * 
	 * @param kontoType
	 */
	public void setKontoType(String kontoType) {
		this.kontoType = kontoType;
	}

	/**
	 * 
	 * @return UserId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * 
	 * @return avaiableBalance
	 */
	public double getAvailableBalance() {
		return availableBalance;
	}

	/**
	 * 
	 * @return totalBalance
	 */
	public double getTotalBalance() {
		return totalBalance;
	}

	/**
	 * 
	 * @return kontoType
	 */
	public String getKontoType() {
		return kontoType;
	}
}